package com.sc.VenusQueryBeta.api.home;

import com.hengjun.kingstar.sdk.helper.okhttp.ResponseFormat;
import com.sc.VenusQueryBeta.model.bean.AboutVGSBean;
import com.sc.VenusQueryBeta.model.bean.home.ActivityListBean;
import com.sc.VenusQueryBeta.model.bean.home.ChangeNextBean;
import com.sc.VenusQueryBeta.model.bean.home.HomeBannerBean;
import com.sc.VenusQueryBeta.model.bean.home.HomeNoticeBean;
import com.sc.VenusQueryBeta.model.bean.home.HostListBean;
import com.sc.VenusQueryBeta.model.bean.home.HotelPriceBean;
import com.sc.VenusQueryBeta.model.bean.home.HotelRestaurantBean;
import com.sc.VenusQueryBeta.model.bean.home.KeyWordListBean;
import com.sc.VenusQueryBeta.model.bean.home.OrderServiceBean;
import com.sc.VenusQueryBeta.model.bean.home.SearchListBean;
import com.sc.VenusQueryBeta.model.bean.home.OverSeasBean;
import com.sc.VenusQueryBeta.model.bean.home.VipListBean;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2018/11/8.
 *
 */

public interface HomeApi {
    //輪播活動列表
    @GET("activity/cycleViewActivityList")
    @ResponseFormat("json")
    Observable<HomeBannerBean> getBanner();

    //活動列表
    @GET("activity/tableViewActivityList")
    @ResponseFormat("json")
    Observable<ActivityListBean> getLatesNew();

    //公告
    @GET("horseRaceLamp/availabelHorseRaceLamp")
    @ResponseFormat("json")
    Observable<HomeNoticeBean> getHomeNotice();

    //热门活动列表
    @GET("activity/popularActivityList")
    @ResponseFormat("json")
    Observable<HostListBean> getHotActivityList();

    //订房订车
    @GET("orderService/orderServiceInfo")
    @ResponseFormat("json")
    Observable<OrderServiceBean> getorderService();

    //貴賓廳列表
    @FormUrlEncoded
    @POST("vipHall/vipHallList")
    @ResponseFormat("json")
    Observable<VipListBean> getVipList(@Field("type") int type);

    //酒店餐厅
    @FormUrlEncoded
    @POST("hotelRestaurant/hotelRestaurantInfo")
    @ResponseFormat("json")
    Observable<HotelRestaurantBean> getHotelRestaurant(@Field("vipClubId") int vipClubId);

    //獲取keyword列表
    @GET("keyword/systemKeywordList")
    @ResponseFormat("json")
    Observable<KeyWordListBean> getKeyWordList();

    //獲取keyword列表
    @FormUrlEncoded
    @POST("activity/dimSearchActivity")
    @ResponseFormat("json")
    Observable<SearchListBean> search(@Field("keyWord") String keyWord);

    //房型價格
    @FormUrlEncoded
    @POST("hotelRoom/hotelRoomList")
    @ResponseFormat("json")
    Observable<HotelPriceBean> getHotelPrice(@Field("vipClubId") int vipClubId);

    //海外廳
    @FormUrlEncoded
    @POST("overSeaClubDetail/overSeaClubDetailInfo")
    @ResponseFormat("json")
    Observable<OverSeasBean> getoversea(@Field("vipClubId") int vipClubId);

    //关于金星
    @GET("sanchuanAndroidApp/VenusQueryBeta/update.cfg")
    @ResponseFormat("xml")
    Observable<AboutVGSBean> about(@Query("id") long id);

    //修改密码登录后修改登录密码,设置页面
    @FormUrlEncoded
    @POST("httpUserMessage/SmsClient-updateUserPassword.action")
    @ResponseFormat("json")
    Observable<ChangeNextBean> changenext(@Field("oldPassword") String oldPassword, @Field("newPassword") String newPassword, @Field("registerIndex") int registerIndex,
                                          @Field("loginUserId") String loginUserId);

    //退出登录
    @FormUrlEncoded
    @POST("httpUserMessage/SmsClient-deleteLoginUserById.action")
    @ResponseFormat("json")
    Observable<String> exitlogin(@Field("loginUserId") String loginUserId);

//    @FormUrlEncoded
//    @POST("SanChunOA/oa-addWorkAllocation.action")
//    @ResponseFormat("json")
//    Observable<String> test(@Field("demIndex")String demIndex,@Field("plannedTime")String plannedTime,@Field("operator")String operator,@Field("status")String status,
//                            @Field("allocationIndex")String allocationIndex,@Field("adjunctPath")String adjunctPath,@Field("workDescr")String workDescr);
}
